package com.qst.Serviceimpl;

import com.qst.Service.RoomService;
import com.qst.dao.RoomMapper;
import com.qst.pojo.Room;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;

/**
 * @packageName:com.qst.Serviceimpl
 * @className:RoomServiceimpl
 * @Description:
 * @author:zhangyu
 * @date 2021/6/18 13:24
 **/

@Service
public class RoomServiceimpl implements RoomService {

    @Resource
    private RoomMapper roomMapper;

    @Override
    public void add(Room room) {

    }

    @Override
    public int delete(int id) {
        return 0;
    }

    @Override
    public int update(Room room) {
        return 0;
    }

    @Override
    public List<Room> query(int id) {
        List<Room> room = roomMapper.query(id);
        return room;
    }

    @Override
    public List<Room> roomList() {
        List<Room> room =roomMapper.roomList();
        return room;
    }

}
